package com.wx.web.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Date;

/**
 * @Description 阿里
 * @Author lijing1@wxchina.com
 * @Date 2020/6/16 13:56
 **/
@RestController()
public class TestController {


    @GetMapping("/ali/now")
    public String test(){
        System.out.println("被调用了");
        return new Date().toString();
    }

    @PostMapping("/ali/now")
    public String postTest(){
        return new Date().toString();
    }

}
